package com.itheima.reggie.entity;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishFlavor;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Data
public class DishDto extends Dish {

    // 封装口味的
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;

    public String toString(){
        return super.toString()
            +"flavors="+flavors
            +"categoryName" +categoryName
            +"copies" +copies
            ;
    }
}
